  function StringBuffer()//使用构造函数
  {
    this._strings_=new Array;
  }
  StringBuffer.prototype.append=function (str)//使用原型定义函数属性
  {
    this._strings_.push(str);
  }
  StringBuffer.prototype.toString=function ()//使用原型定义函数属性
  {
    return this._strings_.join("");
  }
  
  function gjcfilter(cont)
  {
		var retstr = cont;
		var ret = 0;
		var arr = new Array(); 
		var pos;
		var len;
		var total = GLK.length;
		for(var i=1; i < total; i++){

			len = GLK[i].length;
			pos = retstr.indexOf(GLK[i]);
			if(pos > -1){
				ret = 1;
				var sb = new StringBuffer(); 
				//取前段字符串
				sb.append(retstr.substring(0,pos));
				//生成替换字符串***
				if(GLR[i] == "*"){
					arr.length = len;
					for(var j=0; j<len; j++){
						arr[j] = "*";
					}
					sb.append(arr.join(""));
				}else{
					sb.append(GLR[i]);	
				}
				//取后段字符串
				sb.append(retstr.substring(pos+len, retstr.length));
				//生成替换后的字符串
				retstr = sb.toString();
			}
		}
//		alert(retstr);
		return retstr;
  }
